package com.example.jta_atomikos.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author wise-wang
 * 2021.12.05
 * db2数据源配置读取类
 * @Data注解包含@Getter,@Setter,@ToString这3个注解的功能
 */
@Configuration
@ConfigurationProperties(prefix = "spring.datasource.db2")
@Data
public class DB2Config {
    private String username;
    private String password;
    private String jdbcUrl;
}
